home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11840 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: I need help.
  5. Date: 26 Mar 1996 15:08 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <26MAR199615081545@erich.triumf.ca>
  9. References: <4j9hr7$skj@cronkite.seas.gwu.edu>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4j9hr7$skj@cronkite.seas.gwu.edu>, celtik@gwis2.circ.gwu.edu (Tolga Celtikci) writes...
  14. >Can anyone help me with the syntax of EOF. Is it '\o' or something else?
  15.  
  16. No.
  17.  
  18. EOF is _not_ a char in the file.  It is a value returned by getchar(), fgetc()
  19. and some other functions to indicate that they have attempted to read past
  20. end-of-file.   It is a value that cannot be represented in a char, so getchar()
  21. returns an int.  EOF is likely #defined as -1 in stdio.h, but may vary.
  22.  
  23.  
  24. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  25. Internet: bennett@triumf.ca         | of one another only when one can be
  26. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  27. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  28. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  29. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  30.  
  31.